package com.benmei.ntlive.dao;

import com.benmei.ntlive.entity.MemberCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.benmei.ntlive.entity.Member;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface MemberDao {
    int insert(@Param("pojo") Member pojo);

    int insertSelective(@Param("pojo") Member pojo);

    int insertList(@Param("pojos") List<Member> pojo);

    int update(@Param("pojo") Member pojo);

    Member getByToken(String token);

    Integer findStudyPage(@Param("memb_id")Integer memb_id, @Param("cou_id")Integer cou_id);

    void updateStudyPage(@Param("memb_id")Integer memb_id, @Param("cou_id")Integer cou_id, @Param("page")Integer page);

    void insertStudyPage(@Param("pojo")MemberCourse memberCourse);
}
